package jm.nj.day07jia;

public class ComTest {
    public static void main(String[] args) {
        Commodity wM1 = new Commodity();
        wM1.setName("洗衣机");
        wM1.setPrice(1500);
        Commodity tv = new Commodity("电视机",5000);
        Commodity hariDryer = new Commodity("吹风机",50);

        System.out.println("平均价格:"+(wM1.getPrice()+tv.getPrice()+hariDryer.getPrice())/3);
    }
}
